﻿
$(document).ready(function () {
    $("#hover-check").hover(function () {
        $(".first-hidden").css("visibility", "visible");
        $(".first-hidden").slideDown('fast');
        $("#secondLink").hover(function () {
            $(".second-hidden").css("visibility", "visible");
            $(".second-hidden").slideDown('fast');
        });
        $("#container,#nav-bar,#main").hover(function () {
            $(this).find(".first-hidden").slideUp('fast');
            $(this).find(".second-hidden").slideUp('fast');
        })
    });
});

function showRule() {
    var position = $('.gameRulesButton').attr('data-state');
    if (position == 'true') {
        $('#gameRulesPictionary').css('visibility', 'hidden');
        $('.gameRulesButton').attr('data-state', 'false');
    }
    else {
        $('#gameRulesPictionary').css('visibility', 'visible');
        $('.gameRulesButton').attr('data-state', 'true');
    }
}

